package api

import (
	"jgt-wallet/src/bll"
	"jgt-wallet/src/context"
)

type WechatApp struct {
	WechatAppBll *bll.WechatApp `inject:""`
}

// CallBack 回调接口
func (a *WechatApp) CallBack(ctx *context.Context) error {
	var (
		key string
	)
	key = ctx.Param("key")
	req := ctx.GearContext().Req
	resp := ctx.GearContext().Res
	a.WechatAppBll.CallBack(key, resp, req)

	return nil
}
